package ils.web.action;

import java.util.Map;

import org.apache.struts2.interceptor.SessionAware;

import com.opensymphony.xwork2.ActionSupport;

public class LogoffAction extends ActionSupport implements SessionAware
{
    private static final long serialVersionUID = 1L;
    private Map<String, Object> session;
    public String execute() throws Exception
    {
        session.remove("login");
        session.remove("userName");
        session.remove("role");
        return SUCCESS;
    }
    @Override
    public void setSession(Map<String, Object> arg0)
    {
        this.session = arg0;
    }
}
